﻿namespace SvCore.Common;

public static class IdMgr
{
    //获取唯一用户ID
    public static long CreateUuid()
    {
        try { return RedisGame.IdsIncrement(RdsIdUuid); } catch { return Util.GUID(); }
    }
    //获取唯一玩家ID
    public static long CreatePuid()
    {
        try { return RedisGame.IdsIncrement(RdsIdPuid); } catch { return Util.GUID(); }
    }
    //获取邮件ID
    public static long CreateMailId()
    {
        try { return RedisGame.IdsIncrement(RdsIdMail); } catch { return Util.GUID(); }
    }
    //获取对象ID
    public static long CreateObjectId()
    {
        try { return RedisGame.IdsIncrement(RdsIdObject); } catch { return Util.GUID(); }
    }
}
